package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.ProductReviews;
import com.ytjj.qmyx.mall.model.ProductReviewsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ProductReviewsMapper {
    long countByExample(ProductReviewsExample example);

    int deleteByExample(ProductReviewsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProductReviews record);

    int insertSelective(ProductReviews record);

    List<ProductReviews> selectByExample(ProductReviewsExample example);

    ProductReviews selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProductReviews record, @Param("example") ProductReviewsExample example);

    int updateByExample(@Param("record") ProductReviews record, @Param("example") ProductReviewsExample example);

    int updateByPrimaryKeySelective(ProductReviews record);

    int updateByPrimaryKey(ProductReviews record);

    List<ProductReviews> queryProductReviews();

    int insertRandomTime(ProductReviews record);

    /**
     * 修改商品评论
     * @param id
     * @param content
     * @param nickname
     * @param isShow
     * @return
     */
    Integer updateProductReviews(@Param("id")Integer id, @Param("content")String content, @Param("nickname")String nickname, @Param("isShow")Integer isShow);
}